import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../l10n/messages.dart';

class NetworkDetection extends StatefulWidget {
  const NetworkDetection({super.key});

  @override
  State<NetworkDetection> createState() => _NetworkDetectionState();
}

class _NetworkDetectionState extends State<NetworkDetection> {

  @override
  Widget build(BuildContext context) {


    final screenSize = MediaQuery.of(context).size;
    var messages = AppLocalizations.of(context)!;
    DateTime now = DateTime.now();
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text(messages["网络检测"],style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
        centerTitle: true,
        backgroundColor: Colors.white,
      ),
      body: Container(
        padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 30.h),
        child:  ListView(
          children: [
            Text("当前时间:"+ '${now.year}/${now.month}/${now.day} ${now.hour}:${now.minute}:${now.second}',style: TextStyle(color: Colors.black,fontSize: 14.sp),),
            SizedBox(height: 20.h,),
            Text("以下是您及其的相关信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
            Divider(),
            Row(
              children: [
                Text("操作系统",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
                SizedBox(width: 105.w,),
                Text( Theme.of(context).platform == TargetPlatform.android?"Android":"IOS",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
              ],
            ),
            SizedBox(height: 20.h,),
            Text("https:访问可达性判断",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
            Divider(),
            Row(
              children: [
                Text("image.sph56.cn",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
                SizedBox(width: 30.w,),
                Text( "正常访问",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
              ],
            ),
            SizedBox(height: 20.h,),
            Row(
              children: [
                Text("www.sph56.cn",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
                SizedBox(width: 40.w,),
                Text( "正常访问",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
              ],
            ),
            SizedBox(height: 20.h,),
            Text("http:访问可达性判断",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
            Divider(),
            Row(
              children: [
                Text("image.sph56.cn",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
                SizedBox(width: 30.w,),
                Text( "正常访问",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
              ],
            ),
            SizedBox(height: 20.h,),
            Row(
              children: [
                Text("www.sph56.cn",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
                SizedBox(width: 40.w,),
                Text( "正常访问",style: TextStyle(color: Colors.black,fontSize: 13.sp),),
              ],
            ),
          ],
        ),
      ),

    );
  }
}
